dzibellt (2, 0.12, 0.2,0.2)
x <- data_sbirth
mle_zibellt (x, 0.15,1.8,1.05)
# Plot of PMF of the ZIBELLT distribution for selected parameteric values.
# The ZIBELLT distribution reduces to the ZIBELL distribution for fixing theta=1.
x <- 0:30
lambda <- 1.2
theta <- 1.2
pi <- 0.01
plot(dzibellt(x, lambda, theta, pi), type = "h", col="red",lwd = 3,
main = "Zero inflated Bell Touchard distribution",
ylab = "P(X = x)", xlab = "Number of events")
legend("topright",c(expression(lambda==2~~theta==1.5~~pi==0.01)),
lty=1, col="red", lwd=2,cex=1.0)
Run the code above in your browser using DataLab